![]() |
WOLF core
WOLF: A Modular Estimation Framework for Robotics
|
Processor of pose measurements (CapturePose), 2d or 3d: it emplaces an absolute pose factor of the sensor in the keyframe at the capture time stamp. More...
#include <core/processor/processor_pose.h>
Public Member Functions | |
| ProcessorPose (const YAML::Node &_params) | |
| Constructor from YAML parameters. More... | |
| ~ProcessorPose () override=default | |
| WOLF_PROCESSOR_TEMPLATE_DIM_CREATE (ProcessorPose, DIM) | |
| void | configure (SensorBasePtr _sensor) override |
| Configures the processor once linked to its sensor. More... | |
| void | processCapture (CaptureBasePtr _cap) override |
| Processes an incoming capture. More... | |
| void | processKeyFrame (FrameBasePtr _frm) override |
| Processes an incoming keyframe. More... | |
| bool | triggerInCapture (CaptureBasePtr _cap) const override |
| Returns whether processCapture() should be called after the provided capture arrived. More... | |
| bool | triggerInKeyFrame (FrameBasePtr _frm) const override |
| Returns whether processKeyFrame() should be called after the provided keyframe arrived. More... | |
| bool | storeKeyFrame (FrameBasePtr _frm) override |
| Returns whether the provided keyframe should be stored in buffer_frame_. More... | |
| bool | storeCapture (CaptureBasePtr _cap) override |
| Returns whether the provided capture should be stored in buffer_capture_. More... | |
| bool | voteForKeyFrame () const override |
| Votes for keyframe generation. More... | |
| void | createFactorIfNecessary () |
| Links each buffered capture to the buffered keyframe at its time stamp, emplacing its factor. More... | |
Public Member Functions inherited from wolf::ProcessorBase | |
| void | startCaptureProfiling () |
| Starts the profiling of a capture processing. More... | |
| void | stopCaptureProfiling () |
| Stops the profiling of a capture processing. More... | |
| void | startKFProfiling () |
| Starts the profiling of a keyframe processing. More... | |
| void | stopKFProfiling () |
| Stops the profiling of a keyframe processing. More... | |
| virtual void | printProfiling (std::ostream &stream=std::cout) const |
| Prints the profiling of the capture and keyframe processing. More... | |
| ProcessorBase (const std::string &_type, const TypeComposite &_state_types, const YAML::Node &_params) | |
| Constructor. More... | |
| ~ProcessorBase () override | |
| virtual void | configure (SensorBasePtr _sensor)=0 |
| Configures the processor once linked to its sensor. More... | |
| virtual void | remove () |
| Removes the processor from its sensor (and from the motion providers of the problem) More... | |
| bool | hasChildren () const override |
| Returns whether the node has children in the Wolf tree. More... | |
| const TypeComposite & | getStateTypes () const |
| Returns the state types of the frames created or used by this processor. More... | |
| StateKeys | getStateKeys () const |
| Returns the state keys of the frames created or used by this processor. More... | |
| unsigned int | id () const |
| Returns the processor id. More... | |
| void | keyFrameCallback (FrameBasePtr _keyframe) |
| Notifies a new keyframe (created by another processor) More... | |
| void | captureCallback (CaptureBasePtr _capture) |
| Notifies a new capture. More... | |
| SensorBaseConstPtr | getSensor () const |
| Returns the sensor the processor belongs to. More... | |
| SensorBasePtr | getSensor () |
| Returns the sensor the processor belongs to. More... | |
| YAML::Node | getParams () const |
| Returns a copy of the YAML parameters. More... | |
| bool | isMotionProvider () const |
| Returns whether the processor is a MotionProvider. More... | |
| bool | applyLossFunction () const |
| Returns whether the factors created by the processor apply a loss function. More... | |
| bool | isVotingActive () const |
| Returns whether the processor can vote for keyframes. More... | |
| double | getTimeTolerance () const |
| Returns the time tolerance to associate time stamps. More... | |
| void | setApplyLossFunction (bool _apply_loss_function) |
| Sets whether the factors created by the processor apply a loss function. More... | |
| void | setVotingActive (bool _voting_active) |
| Sets whether the processor can vote for keyframes. More... | |
| void | setTimeTolerance (double _time_tolerance) |
| Sets the time tolerance to associate time stamps. More... | |
| void | setDebugVerboseLevel (const std::string &_debug_verbose_level) |
| Sets the debug verbosity level: "none", "derived", "base" or "all". More... | |
| std::string | getDebugVerboseLevel () const |
| Returns the debug verbosity level. More... | |
| bool | checkTimeTolerance (const TimeStamp &_ts1, const TimeStamp &_ts2) const |
| Returns whether two time stamps are within the time tolerance. More... | |
| bool | checkTimeTolerance (const CaptureBasePtr _cap, const TimeStamp &_ts) const |
| Returns whether the capture and a time stamp are within the time tolerance. More... | |
| bool | checkTimeTolerance (const FrameBasePtr _frm, const TimeStamp &_ts) const |
| Returns whether the frame and a time stamp are within the time tolerance. More... | |
| bool | checkTimeTolerance (const FrameBasePtr _frm, const CaptureBasePtr _cap) const |
| Returns whether the frame and the capture are within the time tolerance. More... | |
| virtual void | link (SensorBasePtr) final |
| Links the processor to a sensor. More... | |
| virtual void | printHeader (int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream, std::string _tabs="") const |
| Prints the information of this node (not of its children) More... | |
| void | print (int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream=std::cout, std::string _tabs="") const |
| Prints this node and, depending on the depth, its children. More... | |
| virtual CheckLog | localCheck (bool _verbose, std::ostream &_stream, std::string _tabs="") const |
| Checks the consistency of this node (not of its children) More... | |
| bool | check (CheckLog &_log, bool _verbose, std::ostream &_stream, std::string _tabs="") const |
| Checks the consistency of this node and its children, composing the log. More... | |
Public Member Functions inherited from wolf::NodeBase | |
| NodeBase (const std::string &_category, const std::string &_type="Undefined", const std::string &_name="") | |
| Constructor. More... | |
| virtual | ~NodeBase ()=default |
| Destructor. More... | |
| unsigned int | nodeId () const |
| Returns the node id, unique over the whole Wolf tree. More... | |
| std::string | getCategory () const |
| Returns the category of the node. More... | |
| std::string | getType () const |
| Returns the type (subcategory) of the node. More... | |
| std::string | getName () const |
| Returns the name of the node. More... | |
| bool | isRemoving () const |
| Returns whether the node is being removed. More... | |
| virtual bool | hasChildren () const =0 |
| Returns whether the node has children in the Wolf tree. More... | |
| void | setType (const std::string &_type) |
| Sets the type (subcategory) of the node. More... | |
| void | setName (const std::string &_name) |
| Sets the name of the node. More... | |
| ProblemConstPtr | getProblem () const |
| Returns the problem the node belongs to. More... | |
| ProblemPtr | getProblem () |
| Returns the problem the node belongs to. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from wolf::ProcessorBase | |
| virtual void | processCapture (CaptureBasePtr)=0 |
| Processes an incoming capture. More... | |
| virtual void | processKeyFrame (FrameBasePtr _keyframe_ptr)=0 |
| Processes an incoming keyframe. More... | |
| virtual bool | triggerInCapture (CaptureBasePtr) const =0 |
| Returns whether processCapture() should be called after the provided capture arrived. More... | |
| virtual bool | triggerInKeyFrame (FrameBasePtr) const =0 |
| Returns whether processKeyFrame() should be called after the provided keyframe arrived. More... | |
| virtual bool | storeKeyFrame (FrameBasePtr)=0 |
| Returns whether the provided keyframe should be stored in buffer_frame_. More... | |
| virtual bool | storeCapture (CaptureBasePtr)=0 |
| Returns whether the provided capture should be stored in buffer_capture_. More... | |
| virtual bool | voteForKeyFrame () const =0 |
| Votes for keyframe generation. More... | |
| virtual bool | permittedKeyFrame () const final |
| Returns whether this processor can create a keyframe: voting is active and the problem permits it. More... | |
| void | setProblem (ProblemPtr) override |
| Sets the problem, adding the state types to it and, if it is a state provider, the processor as motion provider. More... | |
| void | addTypes (const TypeComposite &) |
| Adds the provided state types to the processor and to the problem (if set). Throws if a key already has a different type. More... | |
| virtual void | setProblem (ProblemPtr _prob_ptr) |
| Sets the problem the node belongs to. More... | |
Protected Attributes inherited from wolf::ProcessorBase | |
| unsigned int | processor_id_ |
| Processor id, unique among processors. More... | |
| YAML::Node | params_ |
| YAML parameters. More... | |
| BufferFrame | buffer_frame_ |
| Buffer of the received keyframes to be processed. More... | |
| BufferCapture | buffer_capture_ |
| Buffer of the received captures to be processed. More... | |
| std::string | debug_verbose_level_ |
| Debug verbosity level: "none", "derived", "base" or "all". More... | |
Protected Attributes inherited from wolf::NodeBase | |
| ProblemWPtr | problem_ptr_ |
| Problem the node belongs to. More... | |
| unsigned int | node_id_ |
| Node id. It is unique over the whole Wolf Tree. More... | |
| std::string | node_category_ |
| Text label identifying the category of node ("SENSOR", "FEATURE", etc) More... | |
| std::string | node_type_ |
| Type or subcategory of node (derived class name: "SensorOdom2d", etc) More... | |
| std::string | node_name_ |
| bool | is_removing_ |
| A flag for safely removing nodes from the Wolf tree. See remove(). More... | |
Processor of pose measurements (CapturePose), 2d or 3d: it emplaces an absolute pose factor of the sensor in the keyframe at the capture time stamp.
|
inline |
Constructor from YAML parameters.
|
overridedefault |
|
overridevirtual |
Configures the processor once linked to its sensor.
Implements wolf::ProcessorBase.
| void wolf::ProcessorPose< DIM >::createFactorIfNecessary |
Links each buffered capture to the buffered keyframe at its time stamp, emplacing its factor.
|
inlineoverridevirtual |
Processes an incoming capture.
Each derived processor should implement this function. It will be called if:
Implements wolf::ProcessorBase.
|
inlineoverridevirtual |
Processes an incoming keyframe.
Each derived processor should implement this function. It will be called if:
Implements wolf::ProcessorBase.
|
inlineoverridevirtual |
Returns whether the provided capture should be stored in buffer_capture_.
Implements wolf::ProcessorBase.
|
inlineoverridevirtual |
Returns whether the provided keyframe should be stored in buffer_frame_.
Implements wolf::ProcessorBase.
|
inlineoverridevirtual |
Returns whether processCapture() should be called after the provided capture arrived.
Implements wolf::ProcessorBase.
|
inlineoverridevirtual |
Returns whether processKeyFrame() should be called after the provided keyframe arrived.
Implements wolf::ProcessorBase.
|
inlineoverridevirtual |
Votes for keyframe generation.
If a KeyFrame criterion is validated, this function returns true, meaning that it wants to create a KeyFrame at the last Capture.
WARNING! This function only votes! It does not create KeyFrames!
Implements wolf::ProcessorBase.
| wolf::ProcessorPose< DIM >::WOLF_PROCESSOR_TEMPLATE_DIM_CREATE | ( | ProcessorPose< DIM > | , |
| DIM | |||
| ) |